<!DOCTYPE HTML><html><head><title>touzqGm API文档</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="generator" content="https://github.com/raml2html/raml2html 3.0.1"><link rel="stylesheet" href="3rd/bootstrap/bootstrap.min.css"><link rel="stylesheet" href="3rd/highlight.js/default.min.css"><script type="text/javascript" src="3rd/jquery/jquery-1.11.0.min.js"></script><script type="text/javascript" src="3rd/bootstrap/bootstrap.min.js"></script><script type="text/javascript" src="3rd/highlight.js/highlight.min.js"></script><script type="text/javascript">
      $(document).ready(function() {
        $('.page-header pre code, .top-resource-description pre code, .modal-body pre code').each(function(i, block) {
          hljs.highlightBlock(block);
        });

        $('[data-toggle]').click(function() {
          var selector = $(this).data('target') + ' pre code';
          $(selector).each(function(i, block) {
            hljs.highlightBlock(block);
          });
        });

        // open modal on hashes like #_action_get
        $(window).bind('hashchange', function(e) {
          var anchor_id = document.location.hash.substr(1); //strip #
          var element = $('#' + anchor_id);

          // do we have such element + is it a modal?  --> show it
          if (element.length && element.hasClass('modal')) {
            element.modal('show');
          }
        });

        // execute hashchange on first page load
        $(window).trigger('hashchange');

        // remove url fragment on modal hide
        $('.modal').on('hidden.bs.modal', function() {
          try {
            if (history && history.replaceState) {
                history.replaceState({}, '', '#');
            }
          } catch(e) {}
        });
      });
    </script><style>
      .hljs {
        background: transparent;
      }
      .parent {
        color: #999;
      }
      .list-group-item > .badge {
        float: none;
        margin-right: 6px;
      }
      .panel-title > .methods {
        float: right;
      }
      .badge {
        border-radius: 0;
        text-transform: uppercase;
        width: 70px;
        font-weight: normal;
        color: #f3f3f6;
        line-height: normal;
      }
      .badge_get {
        background-color: #63a8e2;
      }
      .badge_post {
        background-color: #6cbd7d;
      }
      .badge_put {
        background-color: #22bac4;
      }
      .badge_delete {
        background-color: #d26460;
      }
      .badge_patch {
        background-color: #ccc444;
      }
      .list-group, .panel-group {
        margin-bottom: 0;
      }
      .panel-group .panel+.panel-white {
        margin-top: 0;
      }
      .panel-group .panel-white {
        border-bottom: 1px solid #F5F5F5;
        border-radius: 0;
      }
      .panel-white:last-child {
        border-bottom-color: white;
        -webkit-box-shadow: none;
        box-shadow: none;
      }
      .panel-white .panel-heading {
        background: white;
      }
      .tab-pane ul {
        padding-left: 2em;
      }
      .tab-pane h1 {
        font-size: 1.3em;
      }
      .tab-pane h2 {
        font-size: 1.2em;
        padding-bottom: 4px;
        border-bottom: 1px solid #ddd;
      }
      .tab-pane h3 {
        font-size: 1.1em;
      }
      .tab-content {
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        padding: 10px;
      }
      #sidebar {
        margin-top: 30px;
        padding-right: 5px;
        overflow: auto;
        height: 90%;
      }
      .top-resource-description {
        border-bottom: 1px solid #ddd;
        background: #fcfcfc;
        padding: 15px 15px 0 15px;
        margin: -15px -15px 10px -15px;
      }
      .resource-description {
        border-bottom: 1px solid #fcfcfc;
        background: #fcfcfc;
        padding: 15px 15px 0 15px;
        margin: -15px -15px 10px -15px;
      }
      .resource-description p:last-child {
        margin: 0;
      }
      .list-group .badge {
        float: left;
      }
      .method_description {
        margin-left: 85px;
      }
      .method_description p:last-child {
        margin: 0;
      }
      .list-group-item {
        cursor: pointer;
      }
      .list-group-item:hover {
        background-color: #f5f5f5;
      }

      pre code {
        overflow: auto;
        word-wrap: normal;
        white-space: pre;
      }
    </style></head><body data-spy="scroll" data-target="#sidebar"><div class="container"><div class="row"><div class="col-md-9" role="main"><div class="page-header"><h1>touzqGm API文档 <small>version 1</small></h1><p>http://gm.touzq.com/api</p><h3 id="--"><a href="#--">文档</a></h3><ul><li><a href="mdwiki.html#!document/publicRetCode.md">公共错误码</a></li></ul></div><div class="panel panel-default"><div class="panel-heading"><h3 id="login" class="panel-title">/login</h3></div><div class="panel-body"><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_login"><span class="parent"></span>/login</a> <span class="methods"><a href="#login_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_login" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#login_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>gm登录</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="login_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent"></span>/login</h4></div><div class="modal-body"><div class="alert alert-info"><p>gm登录</p></div><ul class="nav nav-tabs"><li class="active"><a href="#login_get_request" data-toggle="tab">请求</a></li><li><a href="#login_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="login_get_request"><h3>Query参数</h3><ul><li><strong>account</strong>: <em>required (string)</em><p>账户名</p></li><li><strong>password</strong>: <em>required (string)</em><p>密码密文，该密码要hex(sha1(password))后再提交</p></li></ul></div><div class="tab-pane" id="login_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li><li>1120101 账号不存在</li><li>1120102 密码不正确</li><li>1120103 用户已失效</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "token": "token串"
}
</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="gmAccount" class="panel-title">/gmAccount</h3></div><div class="panel-body"><div class="top-resource-description"><p>gm account模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmAccount_add"><span class="parent">/gmAccount</span>/add</a> <span class="methods"><a href="#gmAccount_add_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmAccount_add" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmAccount_add_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>添加account</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmAccount_add_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmAccount</span>/add</h4></div><div class="modal-body"><div class="alert alert-info"><p>添加account</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmAccount_add_get_request" data-toggle="tab">请求</a></li><li><a href="#gmAccount_add_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmAccount_add_get_request"><h3>Query参数</h3><ul><li><strong>account</strong>: <em>required (string)</em><p>账户名</p></li><li><strong>password</strong>: <em>required (string)</em><p>密码密文，该密码要hex(sha1(password))后再提交</p></li></ul></div><div class="tab-pane" id="gmAccount_add_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li><li>1100101 不允许添加超级用户admin</li><li>1100102 添加的账户已经存在</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmAccount_del"><span class="parent">/gmAccount</span>/del</a> <span class="methods"><a href="#gmAccount_del_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmAccount_del" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmAccount_del_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>删除account</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmAccount_del_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmAccount</span>/del</h4></div><div class="modal-body"><div class="alert alert-info"><p>删除account</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmAccount_del_get_request" data-toggle="tab">请求</a></li><li><a href="#gmAccount_del_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmAccount_del_get_request"><h3>Query参数</h3><ul><li><strong>account</strong>: <em>required (string)</em><p>账户名</p></li></ul></div><div class="tab-pane" id="gmAccount_del_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li><li>1100201 不允许删除超级用户admin</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmAccount_edit"><span class="parent">/gmAccount</span>/edit</a> <span class="methods"><a href="#gmAccount_edit_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmAccount_edit" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmAccount_edit_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>修改密码</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmAccount_edit_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmAccount</span>/edit</h4></div><div class="modal-body"><div class="alert alert-info"><p>修改密码</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmAccount_edit_get_request" data-toggle="tab">请求</a></li><li><a href="#gmAccount_edit_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmAccount_edit_get_request"><h3>Query参数</h3><ul><li><strong>oldPassword</strong>: <em>required (string)</em><p>旧密码密文，该密码要hex(sha1(password))后再提交</p></li><li><strong>newPassword</strong>: <em>required (string)</em><p>新密码密文，该密码要hex(sha1(password))后再提交</p></li></ul></div><div class="tab-pane" id="gmAccount_edit_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li><li>1100301 获取账户失败</li><li>1100302 账户不存在</li><li>1100303 密码错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 1
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmAccount_get"><span class="parent">/gmAccount</span>/get</a> <span class="methods"><a href="#gmAccount_get_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmAccount_get" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmAccount_get_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取account</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmAccount_get_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmAccount</span>/get</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取account</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmAccount_get_get_request" data-toggle="tab">请求</a></li><li><a href="#gmAccount_get_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmAccount_get_get_request"><h3>Query参数</h3><ul><li><strong>account</strong>: <em>(string)</em><p>账户名，没有账户就查询所有账户</p></li></ul></div><div class="tab-pane" id="gmAccount_get_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "columns": {
      "1": "账户",
      "2": "有效（0无效，1有效）",
      "3": "创建时间",
      "4": "最后登录时间"
    },
    "data": [
        {
            "1": "admin",
            "2": 1,
            "3": "2017-03-01 12:00:00",
            "4": "2017-03-01 12:00:00"
        }
    ]
}
</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="gmBanner" class="panel-title">/gmBanner</h3></div><div class="panel-body"><div class="top-resource-description"><p>gm banner模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmBanner_add"><span class="parent">/gmBanner</span>/add</a> <span class="methods"><a href="#gmBanner_add_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmBanner_add" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmBanner_add_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>添加banner</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmBanner_add_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmBanner</span>/add</h4></div><div class="modal-body"><div class="alert alert-info"><p>添加banner</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmBanner_add_get_request" data-toggle="tab">请求</a></li><li><a href="#gmBanner_add_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmBanner_add_get_request"><h3>Query参数</h3><ul><li><strong>imageUrl</strong>: <em>required (string)</em><p>图片的url</p></li><li><strong>linkUrl</strong>: <em>required (string)</em><p>点击后跳转的url</p></li></ul></div><div class="tab-pane" id="gmBanner_add_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmBanner_del"><span class="parent">/gmBanner</span>/del</a> <span class="methods"><a href="#gmBanner_del_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmBanner_del" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmBanner_del_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>删除banner</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmBanner_del_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmBanner</span>/del</h4></div><div class="modal-body"><div class="alert alert-info"><p>删除banner</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmBanner_del_get_request" data-toggle="tab">请求</a></li><li><a href="#gmBanner_del_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmBanner_del_get_request"><h3>Query参数</h3><ul><li><strong>bannerId</strong>: <em>required (string)</em><p>bannerId</p></li></ul></div><div class="tab-pane" id="gmBanner_del_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmBanner_get"><span class="parent">/gmBanner</span>/get</a> <span class="methods"><a href="#gmBanner_get_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmBanner_get" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmBanner_get_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取banner</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmBanner_get_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmBanner</span>/get</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取banner</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmBanner_get_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmBanner_get_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "columns": {
      "1": "id",
      "2": "图片的url",
      "3": "点击后跳转的url"
    },
    "data": [
        {
            "1": "1",
            "2": "www.baidu.com",
            "3": "www.baidu.com"
        }
    ]
}
</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="gmDraft" class="panel-title">/gmDraft</h3></div><div class="panel-body"><div class="top-resource-description"><p>gm draft模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmDraft_get"><span class="parent">/gmDraft</span>/get</a> <span class="methods"><a href="#gmDraft_get_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmDraft_get" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmDraft_get_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取draft</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmDraft_get_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmDraft</span>/get</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取draft</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmDraft_get_get_request" data-toggle="tab">请求</a></li><li><a href="#gmDraft_get_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmDraft_get_get_request"><h3>Query参数</h3><ul><li><strong>createBegin</strong>: <em>required (integer)</em><p>草稿创建的开始时间</p></li><li><strong>createEnd</strong>: <em>required (integer)</em><p>草稿创建的结束时间</p></li></ul></div><div class="tab-pane" id="gmDraft_get_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "pageSize": 10,
    "allCount": 53,
    "data": [
        {
            "aid": 1,
            "title": "标题",
            "platform": "平台名称",
            "title": "活动标题",
            "mainImageUrl": "http://图片url",
            "tags": "标签1^标签2^标签3",
            "createTime": 1477044130,
            "status": 0,
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmDraft_getByAid"><span class="parent">/gmDraft</span>/getByAid</a> <span class="methods"><a href="#gmDraft_getByAid_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmDraft_getByAid" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmDraft_getByAid_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>通过aid查找草稿</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmDraft_getByAid_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmDraft</span>/getByAid</h4></div><div class="modal-body"><div class="alert alert-info"><p>通过aid查找草稿</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmDraft_getByAid_get_request" data-toggle="tab">请求</a></li><li><a href="#gmDraft_getByAid_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmDraft_getByAid_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>草稿id</p></li></ul></div><div class="tab-pane" id="gmDraft_getByAid_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": {
        "aid": 1,
        "platform": "平台名称",
        "title": "活动标题",
        "content1": "内容-活动核心利益",
        "content2": "内容-参与资格",
        "content3": "内容-其他",
        "mainImageUrl": "http://图片url",
        "targetUrl": "http://该文章对应的外链url",
        "createTime": 1477044130,
        "activityBeginTime": 1477044130,
        "activityEndTime": 1477144130,
        "moreImageUrl": "http://其他图片1^http://其他图片2",
        "tags": "标签1^标签2^标签3",
        "cid": 1,
        "column": "所属栏目, 上面的cid是栏目Id",
        "platformLogoUrl": "平台LOGO的url",
        "platformType": "平台类型",
        "registerMoney": "注册资本",
        "platformInfo1": "平台团队情况",
        "platformInfo2": "业务情况",
        "platformInfo3": "经营成果",
        "status": 2,
        "statusMemo": "被驳回的原因文字"
    }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmDraft_pass"><span class="parent">/gmDraft</span>/pass</a> <span class="methods"><a href="#gmDraft_pass_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmDraft_pass" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmDraft_pass_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>通过草稿</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmDraft_pass_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmDraft</span>/pass</h4></div><div class="modal-body"><div class="alert alert-info"><p>通过草稿</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmDraft_pass_get_request" data-toggle="tab">请求</a></li><li><a href="#gmDraft_pass_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmDraft_pass_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>草稿id</p></li></ul></div><div class="tab-pane" id="gmDraft_pass_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmDraft_rebut"><span class="parent">/gmDraft</span>/rebut</a> <span class="methods"><a href="#gmDraft_rebut_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmDraft_rebut" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmDraft_rebut_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>驳回草稿</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmDraft_rebut_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmDraft</span>/rebut</h4></div><div class="modal-body"><div class="alert alert-info"><p>驳回草稿</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmDraft_rebut_get_request" data-toggle="tab">请求</a></li><li><a href="#gmDraft_rebut_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmDraft_rebut_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>草稿id</p></li><li><strong>statusMemo</strong>: <em>required (string)</em><p>驳回原因</p></li></ul></div><div class="tab-pane" id="gmDraft_rebut_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="gmArticle" class="panel-title">/gmArticle</h3></div><div class="panel-body"><div class="top-resource-description"><p>gm article模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmArticle_getArticleCommentByAid"><span class="parent">/gmArticle</span>/getArticleCommentByAid</a> <span class="methods"><a href="#gmArticle_getArticleCommentByAid_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmArticle_getArticleCommentByAid" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmArticle_getArticleCommentByAid_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>通过aid获取举报评论</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmArticle_getArticleCommentByAid_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmArticle</span>/getArticleCommentByAid</h4></div><div class="modal-body"><div class="alert alert-info"><p>通过aid获取举报评论</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmArticle_getArticleCommentByAid_get_request" data-toggle="tab">请求</a></li><li><a href="#gmArticle_getArticleCommentByAid_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmArticle_getArticleCommentByAid_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章id</p></li></ul></div><div class="tab-pane" id="gmArticle_getArticleCommentByAid_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": [
        {
            "aid": "文章id",
            "mid": "评论id",
            "tipsToken": "举报人的页面前端生成的一个用户token, 避免对同一个评论反复举报",
            "tips": "举报内容",
            "tipsTime": "举报时间",
            "status": "该举报内容的处理状态, 0=未处理, 1=已处理 评论已删除, 2=已处理 评论合法",
            "handler": "处理该举报的管理员",
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmArticle_getArticleCommentByMid"><span class="parent">/gmArticle</span>/getArticleCommentByMid</a> <span class="methods"><a href="#gmArticle_getArticleCommentByMid_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmArticle_getArticleCommentByMid" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmArticle_getArticleCommentByMid_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>通过mid获取举报评论</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmArticle_getArticleCommentByMid_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmArticle</span>/getArticleCommentByMid</h4></div><div class="modal-body"><div class="alert alert-info"><p>通过mid获取举报评论</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmArticle_getArticleCommentByMid_get_request" data-toggle="tab">请求</a></li><li><a href="#gmArticle_getArticleCommentByMid_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmArticle_getArticleCommentByMid_get_request"><h3>Query参数</h3><ul><li><strong>mid</strong>: <em>required (integer)</em><p>评论id</p></li></ul></div><div class="tab-pane" id="gmArticle_getArticleCommentByMid_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": [
        {
            "aid": "文章id",
            "mid": "评论id",
            "tipsToken": "举报人的页面前端生成的一个用户token, 避免对同一个评论反复举报",
            "tips": "举报内容",
            "tipsTime": "举报时间",
            "status": "该举报内容的处理状态, 0=未处理, 1=已处理 评论已删除, 2=已处理 评论合法",
            "handler": "处理该举报的管理员",
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmArticle_getArticleCommentByTime"><span class="parent">/gmArticle</span>/getArticleCommentByTime</a> <span class="methods"><a href="#gmArticle_getArticleCommentByTime_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmArticle_getArticleCommentByTime" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmArticle_getArticleCommentByTime_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>通过举报时间获取</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmArticle_getArticleCommentByTime_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmArticle</span>/getArticleCommentByTime</h4></div><div class="modal-body"><div class="alert alert-info"><p>通过举报时间获取</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmArticle_getArticleCommentByTime_get_request" data-toggle="tab">请求</a></li><li><a href="#gmArticle_getArticleCommentByTime_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmArticle_getArticleCommentByTime_get_request"><h3>Query参数</h3><ul><li><strong>tipsBegin</strong>: <em>required (integer)</em><p>开始时间</p></li><li><strong>tipsEnd</strong>: <em>required (integer)</em><p>结束时间</p></li></ul></div><div class="tab-pane" id="gmArticle_getArticleCommentByTime_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": [
        {
            "aid": "文章id",
            "mid": "评论id",
            "tipsToken": "举报人的页面前端生成的一个用户token, 避免对同一个评论反复举报",
            "tips": "举报内容",
            "tipsTime": "举报时间",
            "status": "该举报内容的处理状态, 0=未处理, 1=已处理 评论已删除, 2=已处理 评论合法",
            "handler": "处理该举报的管理员",
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_gmArticle_setArticleCommentStatus"><span class="parent">/gmArticle</span>/setArticleCommentStatus</a> <span class="methods"><a href="#gmArticle_setArticleCommentStatus_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_gmArticle_setArticleCommentStatus" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#gmArticle_setArticleCommentStatus_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>设置举报评论状态</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="gmArticle_setArticleCommentStatus_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/gmArticle</span>/setArticleCommentStatus</h4></div><div class="modal-body"><div class="alert alert-info"><p>设置举报评论状态</p></div><ul class="nav nav-tabs"><li class="active"><a href="#gmArticle_setArticleCommentStatus_get_request" data-toggle="tab">请求</a></li><li><a href="#gmArticle_setArticleCommentStatus_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="gmArticle_setArticleCommentStatus_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章id</p></li><li><strong>mid</strong>: <em>required (integer)</em><p>评论id</p></li><li><strong>status</strong>: <em>required (integer)</em><p>该举报内容的处理状态, 0=未处理, 1=已处理 评论已删除, 2=已处理 评论合法</p></li></ul></div><div class="tab-pane" id="gmArticle_setArticleCommentStatus_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div></div></div></div></div><div class="col-md-3"><div id="sidebar" class="hidden-print affix" role="complementary"><ul class="nav nav-pills nav-stacked"><li><a href="#login">/login</a></li><li><a href="#gmAccount">/gmAccount</a></li><li><a href="#gmBanner">/gmBanner</a></li><li><a href="#gmDraft">/gmDraft</a></li><li><a href="#gmArticle">/gmArticle</a></li></ul></div></div></div></div></body></html>